import request from '@/config/axios'

// 创建设备绑定信息
export const createEquipBind = async (data) => {
  return await request.post({
    url: '/zwsj/equip-bind/create',
    data: data
  })
}

// 删除设备绑定信息
export const deleteEquipBind = async (id: number) => {
  return await request.delete({
    url: '/zwsj/equip-bind/delete?id=' + id
  })
}

// 获得设备绑定信息
export const getEquipBind = async (id: number) => {
  return await request.get({
    url: '/zwsj/equip-bind/get?id=' + id
  })
}

// 获得设备绑定信息分页
export const getEquipBindList = async (params: any) => {
  return await request.get({
    url: '/zwsj/equip-bind/list',
    params: params
  })
}
export const listUnBindRooms = async (params: any) => {
  return await request.get({
    url: '/zwsj/equip-bind/unbind/rooms',
    params: params
  })
}
export const listUnBinHouses = async (params: any) => {
  return await request.get({
    url: '/zwsj/equip-bind/unbind/houses',
    params: params
  })
}

